package ui;

import javax.swing.*;
import java.awt.*;


public class DollarsPerPointScreen {

	private JFrame mainFrame;
	private JTextField dollars_tf, points_tf;
	//TODO: hook up this button
	private JButton submit_btn;
	
	public DollarsPerPointScreen()
	{
		mainFrame = new JFrame();
		mainFrame.setTitle("Dollars per Point");
		mainFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		mainFrame.setSize(650, 550);
		mainFrame.setLayout(new BorderLayout());
		
		doTitle();
		doBody();
	}
	
	private void doTitle()
	{
		String title = "<html><font size = \"4\"Define dollars per point</font></html>";
		JLabel title_lbl = new JLabel(title);
		mainFrame.add(new JPanel().add(title_lbl), BorderLayout.NORTH);
	}
	
	private void doBody()
	{
		dollars_tf = new JTextField(7);
		points_tf = new JTextField(7);
		
		JPanel body_panel = new JPanel();
		body_panel.setLayout(new FlowLayout());
		body_panel.add(new JLabel("Dollars: "));
		body_panel.add(dollars_tf);
		
		body_panel.add(new JLabel("Points: "));
		body_panel.add(points_tf);
		
		mainFrame.add(body_panel, BorderLayout.CENTER);
	}
}
